package com.sinosoft.dsp.persistence.businessconcept.facade;

import java.io.IOException;

import org.w3c.dom.Node;

import com.sinosoft.dsp.system.core.exception.SinoException;
import com.sinosoft.dsp.system.core.exception.SinoXMLException;

public interface IXMLEntity {
	/**
	 * 获得XML
	 * 
	 * @return
	 * @throws IOException
	 */
	public String getXML() throws SinoXMLException;

	/**
	 * 转换一个数据XML到一个对象
	 * 
	 * @param node
	 * @return
	 * @throws SinoException
	 */
	public void instantiateFromNode(Node node) throws SinoXMLException;

}
